package vn.edu.nuce.service;

import org.springframework.transaction.annotation.Transactional;

import vn.edu.nuce.dao.EmailDao;
import vn.edu.nuce.model.Email;
@Transactional(readOnly=true)
public class EmailServiceImpl implements EmailService{
	EmailDao emailDao;

	public EmailDao getEmailDao() {
		return emailDao;
	}

	public void setEmailDao(EmailDao emailDao) {
		this.emailDao = emailDao;
	}

	@Transactional(readOnly=false)
	public void addEmail(Email email) {
		getEmailDao().addEmail(email);
	}

}
